41673b8392f6e073a7ea34d38d5ba90b93746295,plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/TypeInferenceHelper.java,TypeInferenceHelper,getInferredTypeNew,#GrReferenceExpression#,111

Before Change


    final GrControlFlowOwner scope = ControlFlowUtils.findControlFlowOwner(refExpr);
    if (scope == null) return null;

    final Instruction[] flow = scope.getControlFlow();
    return inferVariableType(refExpr.getReferenceName(), scope, flow, findInstruction(refExpr, flow));
  }

After Change


    final GrControlFlowOwner scope = ControlFlowUtils.findControlFlowOwner(refExpr);
    if (scope == null) return null;

    return inferVariableType(scope).getInferredType(refExpr.getReferenceName(), findInstruction(refExpr, scope.getControlFlow()));
  }

  @Nullable